[graphics] Introduce compact form for SVG output#20111
Merged
linev merged 4 commits intoroot-project:masterfrom Oct 16, 2025
Merged
[graphics] Introduce compact form for SVG output#20111linev merged 4 commits intoroot-project:masterfrom
linev merged 4 commits intoroot-project:masterfrom
Conversation
In compact form <desc> and <defs> section are excluded. Also all float values rounded and stored as integer. Such rounding potentially can have side effects, but let create much smaller files.
couet
approved these changes
Oct 15, 2025
Test Results 22 files 22 suites 3d 22h 22m 21s ⏱️ For more details on these failures, see this check. Results for commit df6839c. ♻️ This comment has been updated with latest results. |
Font outside 1..15 range not exists in SVG and does not supported
While such parameter will be only used for very special applications one can specify it when create TSVG instance
If value too small, one have to preserve several significant digits. So small values converted with %3.1f or %5.3f format, or just stored as before
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
~~Introduce static methods in
TSVGclass ~~Add extra argument to
TSVGconstructor to switch on/off compact mode for svg output filesIn compact form and section are excluded.
Also all float values rounded and stored as integer.
For small values lower than 10 use
%3.1fformat.Such rounding potentially can have side effects, but let create much smaller files.
Intention to use this functionality in special tests like in
roottest/graphicsto create SVG files which are small and reproducible on all platforms.My idea use
stressGraphicsfor such testing.It is first PR in series.